{layout name="layout" /}
<!-- 留言板test -->
<link rel="stylesheet" type="text/css" href="/static/css/discuss.css?8792463" />

<div class="Hui-article">
    <div class="pd-20">
        <h2 style="margin: 20px 40%; font-size:2em;font-weight: bold;">站内留言板</h2>
        <div class="main_box">
            <div class="put_box">
                <!-- <div class="put_box" style="display: none;"> -->
                <form action="" method="POST">
                    <ul class="put_content">
                        <li class="first">
                            <a href="#" class=" icon user"></a>
                            <input type="text" class="text" id="name" name="name" placeholder="Your Name" autocomplete='name'>
                            <span style="color: red;">*</span>
                            <div class="clear"></div>
                        </li>
                        <li class="first">
                            <a href="#" class=" icon email"></a>
                            <input type="text" class="text" id="email" name="email " placeholder="Your email" autocomplete='email'>
                            <span style="color: red;">*</span>
                            <div class="clear"></div>
                        </li>
                        <li class="first">
                            <a href="#" class=" icon phone"></a>
                            <input type="text" class="text" id="phone" name="phone" placeholder="Your phone" autocomplete='phone'>
                            <div class="clear"></div>
                        </li>
                        <li class="second">
                            <a href="#" class=" icon msg"></a>
                            <textarea name="content" id="content">Comments</textarea>
                            <div class="clear"></div>
                        </li>
                    </ul>
                    <p style="font-size:0.6em;">本站对个人信息保密, 不会显示个人邮箱及手机信息</p>
                    <input type="button" onClick="sumbit_review(0,0,0)" value="Sumbit">
                    <div class="clear"></div>
                </form>
            </div>
            <div>
                <ul class="ul_box">
                    {foreach $data as $val}
                    <li class="li_box">
                        <div class="p_author">
                            <span>{$val.name}</span>:
                        </div>
                        <div class="content_box">
                            <div class="p_content_box">
                                <div id="p_content_{$val.id}" class="p_content">
                                    {$val.content}
                                </div>
                                <div class="p_botton">
                                    <span>回复({$val.child|count})</span>
                                    &nbsp;|&nbsp;
                                    <a href="javascript:void(0);" class="" onclick="retract(this)" data-stat="0">
                                        <span class="lzl_link_fold">收起回复</span>
                                    </a>
                                    &nbsp;|&nbsp;
                                    <a href="javascript:void(0);" onclick="accusation(this)" data-stat="{$val.id}">
                                        <span>举报</span>
                                    </a>
                                    &nbsp;|&nbsp;
                                    <span class="tail-info">{$val.time|date="Y-m-d H:i:s", ###}</span>
                                </div>
                            </div>
                            {notempty name="val.child"} {foreach $val.child as $vo}
                            <div class="r_content_box">
                                <div class="r_content">
                                    <span class="at j_user_card " username="{$vo.name}">{$vo.name}</span>
                                    <span class="lzl_content_main">回复:&nbsp;&nbsp;
                                        <!-- <span username="home别逗了好吗" class="at">书的便签</span>:&nbsp; -->
                                        {$vo.content}
                                    </span>
                                </div>
                                <div class="r_reply_botton">
                                    <a href="javascript:void(0);" onclick="accusation(this)" data-stat="{$vo.id}">
                                        <span>举报</span>
                                    </a>&nbsp;|&nbsp;
                                    <span class="lzl_op_list j_lzl_o_l"></span>
                                    <span class="lzl_time">{$vo.time|date="Y-m-d H:i:s", ###}&nbsp;|</span>
                                    <a href="javascript:void(0);" class="lzl_s_r">回复</a>
                                </div>
                            </div>
                            {/foreach} {/notempty}
                            <div class="active_replay">
                                <div class="replay_button">
                                    <a href="javascript:void(0)" class="btn btn-defalut" onclick="show_form(this, '{$val.id}', '{$val.id}', 0)">
                                        我也说一句</a>
                                </div>
                            </div>
                        </div>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/static/js/discuss.js?987766401"></script>